import request from "@/utils/request";
export function fetchList(params) {
  return request({
    url: "/dms/banner/list",
    method: "get",
    params: params,
  });
}

export function createBanner(data) {
  return request({
    url: "/dms/banner/create",
    method: "post",
    data: data,
  });
}

export function deleteBanner(id) {
  return request({
    url: "/dms/banner/delete/" + id,
    method: "get",
  });
}

export function getBanner(id) {
  return request({
    url: "/dms/banner/" + id,
    method: "get",
  });
}

export function updateBanner(id, data) {
  return request({
    url: "/dms/banner/update/" + id,
    method: "post",
    data: data,
  });
}
